package demo1;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 87111
 * Date: 2025-07-15
 * Time: 15:50
 */
public class OutClass {
    public String name;
    InnerClass innerClass = new InnerClass();
    static class InnerClass {
        int age;
        public InnerClass() {

        }
    }

    public InnerClass getInnerClass() {
        return new InnerClass();
    }
    public int getAge() {
        innerClass.age = 10;
        return innerClass.age;
    }
}
